//1:
for i in $(seq 1 10); do
echo ----------&i------------
cp a$i.in a.in
time ./a
if !(diff -w a.out a$i.ans); then echo WA!!!; exit; fi
read
done

//2:
g++ std.cpp -o std -g -Wall
g++ brute.cpp -o brute -g -Wall
fpc -g make
while true; do
echo -----------------
./make
time ./std<std.in>std.out
time ./brute<std.in>brute.out
if !(diff -w std.out brute.out); then echo WA!!!; exit; fi
read
done

//3:
int main(int argc,char* argv[]){}
//argc非传入参数，它存储一共传入了几个字符串参数。
//e.g. time ./sy 1 3 5 7
//则argc=5,argv[0]="./sy",argv[1]="1",argv[2]="3",argv[3]="5",argv[4]="7".

//4:
function sj(l,r:longint):longint;
begin
    exit(random(r-l+1)+l);
end;
begin
    assign(output,'a.in'); rewrite(output);
    randomize; n:=sj(1,10); writeln(n);
    close(output);
end.